/*
 * @Descripttion: 
 * @Author: voanit
 * @Date: 2022-06-01 12:03:41
 * @LastEditors: voanit
 * @LastEditTime: 2022-06-01 12:04:44
 */
import { legacy_createStore as createStore, applyMiddleware } from 'redux'
import thunk from 'redux-thunk'
import { composeWithDevTools } from 'redux-devtools-extension'
import rootReducer from './reducers'

const middlewares = composeWithDevTools(applyMiddleware(thunk))
const store = createStore(rootReducer, middlewares)

export default store